Resource URL: /platform/<<version=3>>/local/cluster/nodes/<LNN>/state

    Overview: This resource applies the standard collection pattern to
              individual nodes.  LNN in the resource path is the node lnn ID.

     Methods: GET

********************************************************************************

Method GET: Retrieve node state information.

       URL: GET /platform/<<version=3>>/local/cluster/nodes/<LNN>/state

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "nodes": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "Node state information (reported and modifiable).", 
            "properties": {
              "smartfail": {
                "type": "object", 
                "description": "Node smartfail state.", 
                "properties": {
                  "smartfailed": {
                    "type": "boolean", 
                    "description": "This node is smartfailed (soft_devs)."
                  }, 
                  "dead": {
                    "type": "boolean", 
                    "description": "This node is dead (dead_devs)."
                  }, 
                  "down": {
                    "type": "boolean", 
                    "description": "This node is down (down_devs)."
                  }, 
                  "readonly": {
                    "type": "boolean", 
                    "description": "This node is readonly (ro_devs)."
                  }, 
                  "in_cluster": {
                    "type": "boolean", 
                    "description": "This node is in the cluster (all_devs)."
                  }, 
                  "shutdown_readonly": {
                    "type": "boolean", 
                    "description": "This node is shutdown readonly (down_devs)."
                  }
                }
              }, 
              "readonly": {
                "type": "object", 
                "description": "Node readonly state.", 
                "properties": {
                  "status": {
                    "type": [
                      "string", 
                      "integer"
                    ], 
                    "description": "The current read-only mode status description for the node."
                  }, 
                  "enabled": {
                    "type": "boolean", 
                    "description": "The current read-only user mode status for the node. NOTE: If read-only mode is currently disallowed for this node, it will remain read/write until read-only mode is allowed again. This value only sets or clears any user-specified requests for read-only mode. If the node has been placed into read-only mode by the system, it will remain in read-only mode until the system conditions which triggered read-only mode have cleared."
                  }, 
                  "value": {
                    "type": "integer", 
                    "description": "The current read-only value (enumerated bitfield) for the node."
                  }, 
                  "valid": {
                    "type": "boolean", 
                    "description": "The read-only state values are valid (False = Error)."
                  }, 
                  "mode": {
                    "type": "boolean", 
                    "description": "The current read-only mode status for the node."
                  }, 
                  "allowed": {
                    "type": "boolean", 
                    "description": "The current read-only mode allowed status for the node."
                  }
                }
              }, 
              "lnn": {
                "type": "integer", 
                "description": "Logical Node Number (LNN) of this node."
              }, 
              "servicelight": {
                "type": "object", 
                "description": "Node service light state.", 
                "properties": {
                  "supported": {
                    "type": "boolean", 
                    "description": "This node supports a service light."
                  }, 
                  "enabled": {
                    "required": true, 
                    "type": "boolean", 
                    "description": "The node service light state (True = on)."
                  }, 
                  "valid": {
                    "type": "boolean", 
                    "description": "The node service light state is valid (False = Error)."
                  }, 
                  "present": {
                    "type": "boolean", 
                    "description": "This node has a service light."
                  }
                }
              }, 
              "id": {
                "type": "integer", 
                "description": "Node ID (Device Number) of this node."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }
      }
    }
  ]
}
